﻿@model eShop.Web.Admin.Models.ReceiveModule
@section header{
    <title>编辑单据</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript" src="/administration/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/administration/scripts/jquery.validate.unobtrusive.js"></script>
    <link href="/components/jbox/Skins/Default/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/components/jbox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="/administration/scripts/selectlist.js"></script>
    <style type="text/css">
        .actionDiv {
            width: 110px;
            float: left;
        }
    </style>
}
@section body{
    <h1 class="rightH1">
        入库管理 &gt;&gt; 编辑单据
        <div class="right">
            <a href="@Html.Raw(ViewData["referer"].ToString())" class="menuBT"><img src="/administration/images/goback.jpg" />返回列表</a>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>

    @using (Html.BeginForm())
    {
        <div class="addTable">
            <table width="100%">
                <tr>
                    <td width="86px" align="right">单号：</td>
                    <td>@Html.TextBoxFor(x => x.ReceiveNo, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.ReceiveNo)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">
                        商品：
                    </td>
                    <td>
                        <div class="selectBt">
                            <input type="button" value="@ViewData["pname"]" onclick="openProductSelectLayer(this)" />
                            <input type="hidden" class="Pid" id="PId" name="PId" value="@Model.PId" />
                            <input type="hidden" class="ProductName" id="ProductName" name="ProductName" value="@ViewData["pname"]" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="86px" align="right">仓库：</td>
                    <td>@Html.DropDownListFor(x => x.StockId, ViewData["stockList"] as List<SelectListItem>) @Html.ValidationMessageFor(x => x.StockId)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">数量：</td>
                    <td>@Html.TextBoxFor(x => x.ReceiveNum, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.ReceiveNum)</td>
                </tr>
                <tr>
                    <td width="86px" align="right">备注：</td>
                    <td>@Html.TextBoxFor(x => x.Remark, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.Remark)</td>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <td>
                        <a href="" class="addBt" id="sumbitBut"><img src="/administration/images/submit.jpg" /></a>
                        <script type="text/javascript">
                            $(function () {
                                $("#sumbitBut").click(function () {
                                    $("form:first").submit();
                                    return false;
                                })
                            });
                        </script>
                    </td>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
    }
}